@charset "utf-8";
@import "./mixin";

.layout {
  width: 100%;
  height: 100%;
  background: #f7f7f7;

  .aside {
    @include bg_color(#a47320);
    color: #fff;
    transition: width linear 0.4s;
    box-shadow: 1px 1px 10px rgba(0,0,0, 0.2);
    z-index: 1000;

    .logo {
      width: 100%;
      height: 60px;
      overflow: hidden;
      display: block;
      text-align: center;
      @include bg_color(#001529);
      &.logo-img{
        background: #001529;
        line-height: 60px;
        padding-top: 5px;
      }
      span{
        color: #fff;
        font-size: 18px;
        line-height: 60px;
        display: block;
        width: 100%;
        height: 100%;
        font-weight: bolder;
      }
      &:hover{
        opacity: 0.7;
      }
    }

    .nav-box {
      height: calc(100% - 60px);
      color: #001529;
      padding-bottom: 20px;
      scrollbar-width: none; /* firefox */
      -ms-overflow-style: none; /* IE 10+ */
      overflow-x: hidden;
      overflow-y: auto;
      &::-webkit-scrollbar {
        display: none; /* Chrome Safari */
      }
    }

    &.aside-narrow {
      width: 64px !important;
    }

    ::v-deep .el-menu{
      i, span, .el-menu-item{
        @include font_color(#fff);
      }
      .el-menu-item.is-active{
        @include bg_active_color(#cc8e24);
        color: #fff;
        i, span{
          color: #fff;
        }
      }
    }
  }

  .header {
    /*@include bg_color(#fff);*/
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .menu-icon {
      font-size: 28px;
      cursor: pointer;
      transition: linear 0.4s;
      color: #666;
      /*@include font_color(#666);*/

      &.is-narrow {
        transform: rotate(-90deg);
      }
    }

    .head-box {
      max-width: calc(100% - 60px);
      height: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .icon-pifu{
        color: #666;
        /*@include font_color(#666);*/
      }
      .user{
        margin-left: 30px;
        cursor: pointer;
        .el-dropdown-link{
          color: #666;
          /*@include font_color(#666);*/
        }
      }
    }
  }

  .crumbs-nav{
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    padding: 0 6px;
  }

  .main {
    background: #f5f5f5;
    height: calc(100vh - 60px);
    overflow: auto;
    padding: 10px 20px;
    min-width: 800px;
    &::-webkit-scrollbar{
      height: 5px;
    }
  }
}



